package com.lagou;

import com.lagou.annotation.SpringBootApplication;
import com.lagou.ioc.AnnotationBeanFactory;
import com.lagou.server.ServerBootstrap;

import java.io.IOException;

/**
 * @author yangpeng
 * @time 2020/5/4
 * @since 1.0.0
 */
@SpringBootApplication
public class SpringApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(ServerBootstrap.class, args);
    }


    public static void run(Class<ServerBootstrap> serverClass, String[] args) throws Exception {
        //注解扫描
        AnnotationBeanFactory.initBean(SpringApplication.class.getPackage().getName());
        ServerBootstrap.main(args);


    }
}
